package Ctr;
import Model.*;

/**
 * Write a description of class PersonCtr here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class PersonCtr
{
    private PersonContainer pc;

    /**
     * Constructor for objects of class PersonCtr
     */
    public PersonCtr()
    {
        pc = PersonContainer.getInstance();

    }

    /**
     * this method makes the constroller handle the findKunde method, through 
     * the model layer
     * 
     * @param tlfNr
     * @return nothing
     */
    public void findKunde (int tlfNr)
    {
        pc.findKunde(tlfNr);
    }

    /**
     * this method makes the controller handle the removeKunde method, through 
     * the model layer
     * 
     * @param tlfNr
     * @return nothing
     */
    public void removeKunde (int tlfNr)
    {
        pc.removeKunde(tlfNr);
    }

    /**
     * this method makes the controller handle the findMedarbejder method, through 
     * the model layer
     * 
     * @param id
     * @return nothing
     */
    public void findMedarbejder(int id)
    {
        pc.findMedarbejder(id);
    }

    /**
     * this method makes the controller handle the removeMedarbejder method, through 
     * the model layer
     * 
     * @param id
     * @return nothing
     */
    public void removeMedarbejder(int id)
    {
        pc.removeMedarbejder(id);
    }

    /**
     * this method makes the controller handle the addKunde method, through 
     * the model layer
     * 
     * @param kundeList
     * @return nothing
     */
    public void addKunde(Kunde kundeList)
    {
        pc.addKunde(kundeList);
    }

    /**
     * this method makes the controller handle the addMedarbejder method, through 
     * the model layer
     * 
     * @param medarbejderList
     * @return nothing
     */
    public void addMedarbejder(Medarbejder medarbejderList)
    {
        pc.addMedarbejder(medarbejderList);
    }

}
